import request from '../request.js'

// 搜索数据
export function Search(params) {
    return new Promise((resolve, reject)=>{
        request.post("/api/page/search", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}
// 生生书院-轮播图
export function carousel(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/shengsheng/carousel", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 生生书院-列表
export function getList(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/shengsheng/getList", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 生生书院-详情
export function getDetail(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/shengsheng/detail", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}